package com.github.kotvertolet.youtubejextractor.models.newModels;

import com.google.gson.annotations.SerializedName;
import ohos.utils.Parcel;
import ohos.utils.Sequenceable;

import java.io.Serializable;

public class WebPlayerConfig implements Sequenceable, Serializable {
    @SerializedName("webPlayerActionsPorting")
    private WebPlayerActionsPorting webPlayerActionsPorting;


    public static final Sequenceable.Producer<WebPlayerConfig> CREATOR = new Producer<WebPlayerConfig>() {
        @Override
        public WebPlayerConfig createFromParcel(Parcel parcel) {
            // Initialize an instance first, then do customized unmarshlling.
            WebPlayerConfig webPlayerConfig = new WebPlayerConfig();
            webPlayerConfig.unmarshalling(parcel);
            return webPlayerConfig;
        }
    };


    @Override
    public boolean marshalling(Parcel parcel) {
        parcel.writeSequenceable(this.webPlayerActionsPorting);
        return true;
    }

    @Override
    public boolean unmarshalling(Parcel parcel) {
        parcel.readSequenceable(this.webPlayerActionsPorting);
        return true;
    }

    public WebPlayerActionsPorting getWebPlayerActionsPorting() {
        return webPlayerActionsPorting;
    }

    public void setWebPlayerActionsPorting(WebPlayerActionsPorting webPlayerActionsPorting) {
        this.webPlayerActionsPorting = webPlayerActionsPorting;
    }

    @Override
    public String toString() {
        return "WebPlayerConfig{" +
                "webPlayerActionsPorting = '" + webPlayerActionsPorting + '\'' +
                "}";
    }
}
